package com.zhanghu.backendZray.pojo.request.accounting;

import lombok.Data;

import javax.validation.constraints.NotNull;

/**
 * @author ZhangDong
 * @date 2024/12/20 10:22
 */
@Data
public class AccountingQueryRequest {

    /**
     * 记账年份
     */
    @NotNull(message = " 记账年份不能为空", groups = {NeedYearMonth.class, NeedYear.class})
    private Integer accountingYear;

    /**
     * 记账月份
     */
    @NotNull(message = " 记账月份不能为空", groups = {NeedYearMonth.class, NeedMonth.class})
    private Byte accountingMonth;
    private Integer userId;

    public interface NeedYearMonth {
    }

    public interface NeedYear {
    }

    public interface NeedMonth {
    }
}
